docs: add CLAUDE.md with module reorganization playbook #14705
Merged
rossops merged 2 commits intoDefectDojo:bugfixfrom Apr 20, 2026
Merged
docs: add CLAUDE.md with module reorganization playbook #14705rossops merged 2 commits intoDefectDojo:bugfixfrom
rossops merged 2 commits intoDefectDojo:bugfixfrom
Conversation
Documents a repeatable 10-phase process for reorganizing domain modules (finding, test, engagement, product, product_type) to match the dojo/url/ reference pattern. Includes service-layer extraction guidance to support the long-term goal of removing the classic UI and going fully API-based. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
valentijnscholten
approved these changes
Apr 17, 2026
blakeaowens
approved these changes
Apr 18, 2026
rossops
approved these changes
Apr 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a
CLAUDE.mdfile documenting a repeatable playbook for reorganizing domain modules to match the structure established bydojo/url/. This serves as both developer documentation and AI-assistant guidance for ongoing modularization work.Motivation
Several core modules (finding, test, engagement, product, product_type) are partially reorganized — UI views, queries, and signals have been extracted to subdirectories, but models (~5k lines), forms (~4k lines), filters (~4k lines), serializers (~3.4k lines), and API viewsets (~3.5k lines) remain in monolithic files. This document codifies the
dojo/url/pattern as the target architecture provides a step-by-step extraction process so contributors can work on modules independently and consistently.What's included
dojo/url/withui/,api/, and shared business logic separationservices.pyso both UI and API layers share single implementation